home *** CD-ROM | disk | FTP | other *** search
/ How Would You Survive? / How Would You Survive (1995)(Grolier)[Mac-PC].iso / mac / EGYPTW.DIR / 01714_Script_Entertainment < prev    next >
Text File  |  1995-09-13  |  7KB  |  219 lines

  1. global gQuest, gBeenClicked
  2.  
  3. on EEnterRollovers
  4.   set gBeenClicked = 0
  5.   if (not(CheckClickedStatus(gQuest))) then
  6.     if rollover(5) then
  7.       repeat while rollover(5) 
  8.         EgyptCursor
  9.         puppetsprite 27, true
  10.         set the locH of sprite 27 to 552
  11.         set the locV of sprite 27 to 260
  12.         updatestage
  13.         if the mousedown then
  14.           set GBeenClicked = 1
  15.         else
  16.           if gBeenClicked = 1 then
  17.             repeat while gBeenClicked = 1
  18.               Boomerang 
  19.             end repeat
  20.           end if
  21.         end if
  22.       end repeat
  23.       set the locH of sprite 27 to 952
  24.       puppetsprite 27, false
  25.       updatestage
  26.     else
  27.       if rollover(7) then
  28.         ArrowCursor
  29.         repeat while rollover(7)
  30.           EgyptCursor
  31.           puppetsprite 22, true
  32.           set the locH of sprite 22 to 391
  33.           set the locV of sprite 22 to 232
  34.           updatestage
  35.           if the mousedown then
  36.             set GBeenClicked = 1
  37.           else
  38.             if gBeenClicked = 1 then
  39.               repeat while gBeenClicked = 1
  40.                 AnimateLoopFast 7, 818, 6, "SE370802.AIF (kids)", 2
  41.               end repeat
  42.             end if
  43.           end if
  44.         end repeat
  45.         ArrowCursor
  46.         set the locH of sprite 22 to 991
  47.         puppetsprite 22, false
  48.         updatestage
  49.       else
  50.         if rollover(6) then
  51.           repeat while rollover(6)
  52.             EgyptCursor
  53.             set the locH of sprite 28 to 544
  54.             set the locV of sprite 28 to 165
  55.             updatestage
  56.             if the mousedown then
  57.               set GBeenClicked = 1
  58.             else
  59.               if gBeenClicked = 1 then
  60.                 repeat while gBeenClicked = 1
  61.                   AnimateLoop 6, 815, 2, "SE370701.AIF (drawer)", 1
  62.                 end repeat
  63.               end if
  64.             end if
  65.           end repeat
  66.           set the locH of sprite 28 to 944
  67.           updatestage
  68.         else
  69.           if rollover(8) then
  70.             ArrowCursor
  71.             repeat while rollover(8)
  72.               set the locH of sprite 9 to 510
  73.               set the locV of sprite 9 to 317
  74.               updatestage
  75.             end repeat
  76.             set the locH of sprite 9 to 910
  77.             updatestage
  78.           else
  79.             if rollover(10) then
  80.               arrowcursor
  81.               repeat while rollover(10)
  82.                 set the locH of sprite 11 to 303
  83.                 set the locV of sprite 11 to 249
  84.                 updatestage
  85.               end repeat
  86.               set the locH of sprite 11 to 903
  87.               updatestage
  88.             else
  89.               if rollover(16) then
  90.                 ArrowCursor
  91.                 repeat while rollover(16)
  92.                   set the locH of sprite 17 to 151
  93.                   set the locV of sprite 17 to 361
  94.                   updatestage
  95.                 end repeat
  96.                 set the locH of sprite 17 to 951
  97.                 updatestage
  98.               else
  99.                 if rollover(18) then
  100.                   ArrowCursor
  101.                   repeat while rollover(18)
  102.                     set the locH of sprite 19 to 300
  103.                     set the locV of sprite 19 to 149
  104.                     updatestage
  105.                   end repeat
  106.                   set the locH of sprite 19 to 900
  107.                   updatestage
  108.                 else
  109.                   if rollover(20) then
  110.                     ArrowCursor
  111.                     repeat while rollover(20)
  112.                       set the locH of sprite 21 to 455
  113.                       set the locV of sprite 21 to 320
  114.                       updatestage
  115.                     end repeat
  116.                     set the locH of sprite 21 to 955
  117.                     updatestage
  118.                   else
  119.                     if rollover(25) then
  120.                       ArrowCursor
  121.                       repeat while rollover(25)
  122.                         set the locH of sprite 26 to 385
  123.                         set the locV of sprite 26 to 358
  124.                         updatestage
  125.                       end repeat
  126.                       set the locH of sprite 26 to 985
  127.                       updatestage
  128.                     else
  129.                       if rollover(41) then
  130.                         HandCursor
  131.                       else
  132.                         if rollover(42) then
  133.                           HandCursor
  134.                         else
  135.                           ArrowCursor
  136.                         end if
  137.                       end if
  138.                     end if
  139.                   end if
  140.                 end if
  141.               end if
  142.             end if
  143.           end if
  144.         end if
  145.       end if
  146.     end if
  147.   end if
  148.   RandomQuestion(gQuest)
  149. end
  150.  
  151. on Boomerang
  152.   ArrowCursor
  153.   set gAnimationcast1 = 824
  154.   set gAnimationcast2 = 828
  155.   set gAnimationcast3 = 832
  156.   set count = 0
  157.   puppetsound "SE37901.AIF"
  158.   repeat while count < 1 and (the mouseUp)
  159.     
  160.     set the castnum of sprite 3 = gAnimationcast1 + 1
  161.     updatestage
  162.     wait .3
  163.     set the castnum of sprite 3 = gAnimationcast1 + 2
  164.     set the castnum of sprite 4 = gAnimationcast3 + 1
  165.     updatestage
  166.     wait .3
  167.     set the castnum of sprite 3 = gAnimationcast1 + 3
  168.     set the castnum of sprite 4 = gAnimationcast3 + 2
  169.     updatestage
  170.     wait .3
  171.     set the castnum of sprite 3 = gAnimationcast1 + 2
  172.     updatestage
  173.     wait .3
  174.     set the castnum of sprite 3 = gAnimationcast1 + 1
  175.     set the castnum of sprite 4 = gAnimationcast3 + 3
  176.     updatestage
  177.     wait .3
  178.     set the visible of sprite 3 = 0
  179.     set the castnum of sprite 2 = gAnimationcast2 + 1
  180.     set the castnum of sprite 4 = gAnimationcast3 + 3
  181.     puppetsound "SE370905.AIF (Boomerang)"
  182.     updatestage
  183.     wait .3
  184.     set the castnum of sprite 2 = gAnimationcast2 + 2
  185.     updatestage
  186.     wait .3
  187.     set the castnum of sprite 2 = gAnimationcast2 + 3
  188.     set the castnum of sprite 4 = gAnimationcast3 + 2
  189.     updatestage
  190.     wait .3
  191.     set the castnum of sprite 2 = gAnimationcast2
  192.     set the castnum of sprite 4 = gAnimationcast3 + 3
  193.     puppetsound "SE37902.AIF"
  194.     updatestage
  195.     wait 1
  196.     set the castnum of sprite 3 = gAnimationcast1 + 1
  197.     set the castnum of sprite 4 = gAnimationcast3 + 2
  198.     updatestage
  199.     wait .3
  200.     set the castnum of sprite 3 = gAnimationcast1 + 2
  201.     updatestage
  202.     puppetsound "SE37901.AIF"
  203.     wait .3
  204.     set the castnum of sprite 3 = gAnimationcast1 + 3
  205.     updatestage
  206.     wait .3
  207.     set count = count + 1
  208.     
  209.   end repeat
  210.   set the visible of sprite 3 = 1
  211.   set the castnum of sprite 3 = gAnimationcast1
  212.   set the castnum of sprite 2 = gAnimationcast2
  213.   set the castnum of sprite 4 = gAnimationcast3
  214.   updatestage
  215.   sound fadeout 1, 2*60
  216.   set gBeenClicked = 0
  217. end
  218.  
  219.